﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <script src="../../js/header.js"></script>
    <title>首页</title>
    <style type="text/css">
        .noBorder {
            border: 0px;
            box-shadow: 0px 0px 0px #888888;
        }
    </style>
</head>
<body>
    <div class="data-wrap case" id="container">
        <div class="data-tool">
            <span style="font-size:16px;font-weight:bold;">当前登陆用户</span>
            <div class="input-group m10_t">
                <label class="input-group-addon t_r wd150">登陆名称：</label>
                <label class="form-control wd250 noBorder" id="uLoginName"></label>
            </div>
            <div class="input-group m10_t">
                <label class="input-group-addon wd150 t_r">公司名称：</label>
                <label class="form-control wd250 noBorder" id="uCompanyName"></label>
            </div>
            <div class="input-group m10_t">
                <label class="input-group-addon t_r wd150">联络电话：</label>
                <label class="form-control wd250 noBorder" id="uTelephone"></label>
            </div>
            <div class="input-group m10_t">
                <label class="input-group-addon t_r wd150">联络Email：</label>
                <label class="form-control wd250 noBorder" id="uEmail"></label>
            </div>
            <div class="input-group m10_t">
                <label class="input-group-addon t_r wd150">是否启用谷歌验证：</label>
                <label class="form-control wd250 noBorder" id="uLogged"></label>
            </div>
            <div class="input-group m10_t">
                <label class="input-group-addon t_r wd150">说明：</label>
                <label class="form-control wd250 noBorder" id="uDescription"></label>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            var param = { PageSize: 1, uStatus: 1 };
            FlashPay.Util.Ajax({
                type: "POST",
                url: "/User/GetNowUserInfo",
                data: JSON.stringify(param),
                dataType: "json",
                contentType: "application/json",
                success: function (data) {
                    if (data.success) {
                        var infos = data.tData[0];
                        $("#uLoginName").text(infos.uLoginName);
                        $("#uCompanyName").text(infos.uCompany.companyName);
                        $("#uTelephone").text(infos.uTelephone);
                        $("#uEmail").text(infos.uEmail);
                        $("#uLogged").text(infos.uLoggedIn == 1 ? "启用" :"禁用");
                        $("#uDescription").text(infos.uDescription);
                    }
                }
            });
        })
    </script>
</body>
</html>
